package model.semantics;

import model.State;

public class ConstNode<T> extends Node<T> {

    private T myValue;

    public ConstNode(T value) {
        myValue = value;
    }

    @Override
    public T evaluate(State<T> state) {
        return myValue;
    }

    @Override
    public String toString() {
        return myValue.toString();
    }
}
